package com.dengwei.smali.first.dwpull_to_refresh.PullToRefresh;

import android.view.View;

/**
 * Created by dengwei on 2017/3/19.\
 * 回调接口
 */

public interface PullToRefreshHandler {

    /**
     * 是否可以执行刷新
     * @param frame
     * @param content
     * @param header
     * @return
     */
    boolean checkCanDoRefresh(final PullToRefreshFrameLayout frame, final View content, final View header);

    /**
     * 开始刷新
     * @param frame
     */
    void onRefreshBegin(final PullToRefreshFrameLayout frame);
}
